package com.cinema;

import com.cinema.util.SysConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;

@SpringBootApplication
public class CinemaApplication {
    public static void main(String[] args) throws InterruptedException {
        File file=new File(SysConfig.UPLOAD_DIR);
        if(!file.exists()){
            //不存在创建文件夹
            System.out.println("没有检测到静态资源文件夹，正在准备创建文件夹，需要一点时间......");
            Thread.sleep(1000);
            file.mkdirs();
            System.out.println("静态资源文件夹创建成功......");
        }
        SpringApplication.run(CinemaApplication.class,args);
    }
}
